/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export default {
  path: '/finance',
  component: Layout,
  name: 'finance',
  meta: {
    title: '财务管理',
    icon: 'el-icon-coin'
  },
  children: [
    {
      path: 'fund',
      component: () => import('@/views/finance/fund'),
      name: 'fund',
      meta: { title: '资金管理', noCache: true, icon: 'list' }
    },
    {
      path: 'payment',
      component: () => import('@/views/finance/payment'),
      name: 'payment',
      meta: { title: '出纳付款', noCache: true, icon: 'list' }
    },
    {
      path: 'collection',
      component: () => import('@/views/finance/collection'),
      name: 'collection',
      meta: { title: '出纳收款', noCache: true, icon: 'list' }
    },
    {
      path: 'contractProject',
      component: () => import('@/views/finance/contractProject'),
      name: 'contractProject',
      meta: { title: '合同/项目', noCache: true, icon: 'list' }
    },
    {
      path: 'income',
      component: () => import('@/views/finance/income'),
      name: 'income',
      meta: { title: '收入管理', noCache: true, icon: 'list' }
    },
    {
      path: 'expend',
      component: () => import('@/views/finance/expend'),
      name: 'expend',
      meta: { title: '支出管理', noCache: true, icon: 'list' }
    },
    {
      path: 'loan',
      component: () => import('@/views/finance/loan'),
      name: 'loan',
      meta: { title: '借款申请', noCache: true, icon: 'list' }
    },
    {
      path: 'reimbursement',
      component: () => import('@/views/finance/reimbursement'),
      name: 'reimbursement',
      meta: { title: '报销管理', noCache: true, icon: 'list' }
    },
    {
      path: 'invoice',
      component: () => import('@/views/finance/invoice'),
      name: 'invoice',
      meta: { title: '发票管理', noCache: true, icon: 'list' }
    },
    {
      path: 'salary',
      component: () => import('@/views/finance/salary'),
      name: 'salary',
      meta: { title: '薪资管理', noCache: true, icon: 'list' }
    },
    {
      path: 'password',
      component: () => import('@/views/finance/password/password'),
      name: 'password',
      meta: { title: '密码设置', noCache: true, icon: 'list' }
    }
  ]
}
